* xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 May 2011 23:16:52 +0000 (16:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 May 2011 23:16:52 +0000 (16:16 -0700)
commita9199c5391dcf109ba5172aea274fd5f4f172a50
tree8dbd2acdadd46ca58ecf3908c9b85bc914f23ed5
parentfa007bf4ed2a035829f33ff0db04bb76cb604ed8
* xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers.

Before, the code was not consistent.  These values cannot exceed
2**31 - 1 so there's no need to make them unsigned.
(x_x_to_emacs_modifiers): Accept int and return EMACS_INT.
(x_emacs_to_x_modifiers): Accept EMACS_INT and return int.
(x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Reject non-integers
as modifiers.
* xterm.h (x_x_to_emacs_modifiers): Adjust to signature change.
src/ChangeLog
src/xterm.c
src/xterm.h